﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cnv="clr-namespace:ShredTheLog.Converters;assembly=ShredTheLog.Converters"
    xmlns:c="clr-namespace:ShredTheLog.Controls;assembly=ShredTheLog.Controls"
    >

    <ToolTip x:Key="UserToolTip">
        <ToolTip.Resources>
            <Style x:Key="HeaderTextBlock" TargetType="{x:Type TextBlock}">
                <Setter Property="FontWeight" Value="Bold"/>
            </Style>
            <Style x:Key="ContentTextBlock" TargetType="{x:Type TextBlock}">
                <Setter Property="FontWeight" Value="Normal"/>
            </Style>
        </ToolTip.Resources>
        
        <StackPanel>
            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Name}" Style="{StaticResource HeaderTextBlock}"/>
                :
                <TextBlock Text="{Binding Path=Name}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>

            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Age}" Style="{StaticResource HeaderTextBlock}"/>
                :
                <TextBlock Text="{Binding Path=Age}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>

            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Country}" Style="{StaticResource HeaderTextBlock}"/>
                :
                <TextBlock Text="{Binding Path=Country, Converter={x:Static cnv:CountryConverter.Default}}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>

            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Knows}" Style="{StaticResource HeaderTextBlock}"/>
                :
                <TextBlock Text="{Binding Path=KnownLanguages, Converter={x:Static cnv:LanguagesConverter.Default}}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>

            <TextBlock>
                <TextBlock Text="{c:LocalizedString s_Learns}" Style="{StaticResource HeaderTextBlock}"/>
                :
                <TextBlock Text="{Binding Path=PracticingLanguages, Converter={x:Static cnv:LanguagesConverter.Default}}" Style="{StaticResource ContentTextBlock}"/>
            </TextBlock>
        </StackPanel>
    </ToolTip>
</ResourceDictionary>